﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Web;
using System.Web.Mvc;

namespace PaperSystem.Models
{
    //题库查询信息
    public class QuestionQuery
    {
        public string type { get; set; }
        public string course { get; set; }
        public string creator { get; set; }
        public string chapter { get; set; }
        public string knowledge { get; set; }
    }

    //题目基本信息
    public class QuestionList
    {
        public int eid { get; set; }
        public string creator { get; set; }
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? time { get; set; }
        public string course { get; set; }
        public string content { get; set; }
        public string type { get; set; }
        public string chapter { get; set; }
        public string knowledge { get; set; }
        public string TorE { get; set; }
        public int? cited { get; set; }
    }

    //新增题目的外表信息
    public class NewExQuestion
    {
        //外表信息
        public string creatorId { get; set; }
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? time { get; set; }
        public string course { get; set; }
        public string content { get; set; }
        public string type { get; set; }
        public int includeNum { get; set; }
        public string chapter { get; set; }
        public string knowledge { get; set; }
        public string TorE { get; set; } 
    }

    public class NewInQuestion
    {
        //内表信息
        public int Iorder { get; set; }
        public string answerMode { get; set; }
        public string Icontent { get; set; }
        public string answer { get; set; }
        //选择题特有
        public string option1 { get; set; }
        public string option2 { get; set; }
        public string option3 { get; set; }
        public string option4 { get; set; }
        public string option5 { get; set; }
        public string option6 { get; set; }
        public string option7 { get; set; }
        public string option8 { get; set; }
        public int isSingle { get; set; }
        public int optionNum { get; set; }
    }

    //修改题目显示
    public class UpdateQuestion
    {
        //外表信息
        public int eid { get; set; }
        public string creator { get; set; }
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? time { get; set; }
        public string course { get; set; }
        public string content { get; set; }
        public string type { get; set; }
        public int? includeNum { get; set; }
        public string chapter { get; set; }
        public string knowledge { get; set; }
        public string TorE { get; set; }
        //内表信息
        public UpdateInQuestion[] inq { get; set; }
    }

    public class UpdateInQuestion
    {
        //内表信息
        public int iid { get; set; }
        public int? Iorder { get; set; }
        public string answerMode { get; set; }
        public string Icontent { get; set; }
        public string answer { get; set; }
        //选择题特有
        public string option1 { get; set; }
        public string option2 { get; set; }
        public string option3 { get; set; }
        public string option4 { get; set; }
        public string option5 { get; set; }
        public string option6 { get; set; }
        public string option7 { get; set; }
        public string option8 { get; set; }
        public int? isSingle { get; set; }
        public int? optionNum { get; set; }
        //小题是否新增、删除标记
        public bool isNew { get; set; }
        public bool isDelete { get; set; }
    }
}
